package com.wang.pojo;

import com.wang.sqlsession.SqlCommandType;

import javax.sql.DataSource;
import java.util.HashMap;
import java.util.Map;

/**
 * Created by wangq on 2021/6/29.
 *
 * 存放sql配置文件的解析的数据
 */
public class Configuration {
    private DataSource dataSource; // 数据源对象

    Map<String, MappedStatement> mappedStatementMap = new HashMap<>(); // sql语句唯一标识id和sql文件的解析结果集合


    public DataSource getDataSource() {
        return dataSource;
    }

    public void setDataSource(DataSource dataSource) {
        this.dataSource = dataSource;
    }

    public Map<String, MappedStatement> getMappedStatementMap() {
        return mappedStatementMap;
    }

    public void setMappedStatementMap(Map<String, MappedStatement> mappedStatementMap) {
        this.mappedStatementMap = mappedStatementMap;
    }
}
